<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>高德地图</title>
  <!-- 1. 导入高德地图的js库 -->
  <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=b08190b591334fbe5878a7a6b1b2432d"></script>
  <!-- 3. 样式 -->
  <style>
    #container { 
      height: 400px;
    }
  </style>
</head>
<body>
  <!-- 2. 添加容器，用于承载地图组件 -->
  <div id="container">

  </div>
  <!-- 4. 初始化 -->
  <script>
    var map = new AMap.Map('container');
  </script>
  
</body>
</html>